const { VUE_APP_PATH, NODE_ENV } = process.env
const isProd = NODE_ENV === 'production'
const apps = [
  { name: 'home', port: 8101 },
  // app placeholder
]

export default apps.map(({ name, port }) => (
  {
    name,
    entry: isProd ? `${VUE_APP_PATH}micro/${name}/` : `//localhost:${port}${VUE_APP_PATH}`,
    activeRule: `${VUE_APP_PATH}${name}/`,
    container: '#subapp', // 子应用挂载的元素 id
  }
))
